/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const saleRouter = {
  path: '/sale',
  component: Layout,
  redirect: 'noRedirect',
  name: '销售',
  hidden:true,
  meta: {
    title: '营销', icon: 'guide'
  },
  children: [
    {
      path: 'main',
      component: () => import('@/views/sale/main'),
      name: '概览',
      hidden:true,
      meta: { title: '概览', icon: 'guide' }
    },
    {
      path: 'order',
      component: () => import('@/views/sale/order/order'),
      name: '订单',
      hidden:true,
      meta: { title: '订单', icon: 'guide' }
    },
    
    {
      path: 'order-detail',
      component: () => import('@/views/sale/order/order-detail'),
      name: '订单档案',
      hidden:true,
      meta: { title: '订单档案', icon: 'guide' }
    },
    {
      path: 'refund',
      component: () => import('@/views/sale/refund/refund'),
      name: '文档',
      hidden:true,
      meta: { title: '文档', icon: 'guide' }
    },
    {
      path: 'refund-detail',
      component: () => import('@/views/sale/refund/refund-detail'),
      name: '退款档案',
      hidden:true,
      meta: { title: '退款档案', icon: 'guide' }
    },
    {
      path: 'delivery',
      component: () => import('@/views/sale/delivery/delivery'),
      name: '发货',
      hidden:true,
      meta: { title: '发货', icon: 'guide' }
    },
    {
      path: 'delivery-detail',
      component: () => import('@/views/sale/delivery/delivery-detail'),
      name: '发货编辑',
      hidden:true,
      meta: { title: '发货编辑', icon: 'guide' }
    },
    {
      path: 'target',
      component: () => import('@/views/sale/target/target'),
      name: '发货',
      hidden:true,
      meta: { title: '发货', icon: 'guide' }
    },
    {
      path: 'target-detail',
      component: () => import('@/views/sale/target/target-detail'),
      name: '发货编辑',
      hidden:true,
      meta: { title: '发货编辑', icon: 'guide' }
    }
  ]
}

export default saleRouter
